<?php

namespace app\api\controller;


class Agreement extends \app\common\controller\Api
{
    protected $noNeedLogin = ['*'];

    public function getAgreement()
    {
        $id = $this->request->get('id');
        $content = \app\admin\model\Agreement::get($id)->agreement_content;

        $this->success('ok', $content);
    }

}
